<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Aikes_系统</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<script type="text/javascript" src="css/js/jquery.min.js"></script>
<script type="text/javascript" src="css/js/index_manage.js"></script>
<script type="text/javascript" src="css/js/index_add.js"></script>
<script type="text/javascript" src="css/js/index_pwd.js"></script>
<script type="text/javascript" src="css/js/index_createAdmin.js"></script>
<script type="text/javascript" src="css/js/index_admin.js"></script>
<script type="text/javascript" src="css/js/index_history.js"></script>
<script type="text/javascript">
	$(function(){
		$("#navigation li a").eq(6).addClass("active");
	});
	
	function index(){
		$("#menu").hide();
		$("#div1").fadeIn();
		page(1);
	}
	
	function add(){
		$("#menu").hide();
		$("#div2").fadeIn();
	}
	
	function changePwd(){
		$("#menu").hide();
		$("#div3").fadeIn();
	}
	
	function createAdmin(){
		$("#menu").hide();
		$("#div4").fadeIn();
	}
	
	function manageAdmin(){
		$("#menu").hide();
		$("#div5").fadeIn();
		adminPage(1);
	}
	
	function history(){
		$("#menu").hide();
		$("#div6").fadeIn();
		historyPage(1);
	}
	
	
</script>
</head>
<body>
<div id="header">
		<div class="shell">
			<div id="top">
				<c:import url="../logo.jsp"></c:import>
			</div>
			<div id="navigation" style="padding-bottom:150px;">
				<c:import url="../menu.jsp"></c:import>
			</div>
		</div>
</div>
	<!-- Container -->
	<div id="container" >
		<div class="shell" id="menu" >
			<div class="msg-a" onclick="index();">首页动态管理</div>	
			<div class="msg-b" onclick="add();">添加动态信息</div>	
			<div class="msg-a" onclick="changePwd();">修改用户密码</div>	
			<div class="msg-b" <c:choose>
				<c:when test="${admin.roll == '2' }">id="msg-c";</c:when> 
				<c:otherwise>onclick="createAdmin();"</c:otherwise></c:choose>
				>创建用户帐号</div>	
			<div class="msg-a" <c:choose>
				<c:when test="${admin.roll == '2' }" >id="msg-c";</c:when> 
				<c:otherwise>onclick="manageAdmin();"</c:otherwise></c:choose>
				>管理所有用户</div>	
			<div class="msg-b" <c:choose>
				<c:when test="${admin.roll == '2' }" >id="msg-c";</c:when> 
				<c:otherwise>onclick="history();"</c:otherwise></c:choose>>查看登录日志</div>	
			
		</div>
		<div class = "shell" style="display:none;" id="div1">
			<c:import url="index_manage.jsp"></c:import>
		</div>
		
		<div class = "shell" style="display:none;" id="div2">
			<c:import url="index_add.jsp"></c:import>
		</div>

		<div class = "shell" style="display:none;" id="div3">
			<c:import url="index_pwd.jsp"></c:import>
		</div>

		<div class = "shell" style="display:none;" id="div4">
			<c:import url="index_createAdmin.jsp"></c:import>
		</div>
		
		<div class = "shell" style="display:none;" id="div5">
			<c:import url="index_admin.jsp"></c:import>
		</div>

		<div class = "shell" style="display:none;" id="div6">
			<c:import url="index_history.jsp"></c:import>
		</div>

		
	</div>
	
	<!-- Footer -->
	<div id="footer">
		<div class="shell">
			<span class="left">&copy; 2017 - Aikesls</span>
		</div>
	</div>
	<!-- End Footer -->

</body>
</html>